package com.tju.resource.business.tb_material;


import com.tju.resource.model.TbMaterial;
import com.tju.resource.result.Result;

import java.util.Map;

/**
*
*/
public interface TbMaterialService  {

    Result<Object> getAll(Map<String, String> params);

    TbMaterial byId(Long matlId);

    TbMaterial byNo(String matlNumber);

    TbMaterial byNa(String matlName);

    Result<Object> add(TbMaterial material);

    int upd(TbMaterial material);

    int del(Long matlId);
    Result<Object> byName(Map<String, String> params);
    Result<Object> byOrderNumber(Map<String, String> params);
    Result<Object> byOrderMatlNumber(Map<String, String> params);
    /**
     * 添加物料下面的耗材
     * @param material 物料下面的耗材
     * @return 结果
     */
    Result<Object> addMatlConsumables(TbMaterial material);
    /**
     * 添加物料下面的原料
     * @param material 物料下面的原料
     * @return 结果
     */
    Result<Object> addMatlRmMatl(TbMaterial material);
}
